package com.qqtech.qquan.community.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class CommunityMessage extends BaseDomain{

	//columns START
    /** 类型:1-互助;2-八卦;3-活动;4-社区;5-娱乐;6-财经;7-数码 */
	private Integer type;
    /** 内容 */
	private java.lang.String content;
    /** 创建者用户Id */
	private java.lang.Integer creatorId;
    /** 社区id */
	private java.lang.Integer communityId;
    /** 多个图片以;分开 */
	private java.lang.String img;
    /** 状态CommunityMessageStatusEnum:1-正常;2-删除 */
	private java.lang.Integer status;
    /** 是否显示:1-是;2-否 */
	private java.lang.Integer isShow;
    /** 浏览量 */
	private java.lang.Integer pv;
	/**是否官方:1-是 2-否**/
	private java.lang.Integer isOfficial;
	/**是否置顶:1-是 2-否**/
	private java.lang.Integer isTop;
	/**置顶时间**/
	private java.sql.Timestamp topAt;
	/**标签Id**/
	private Integer tagId;
	
	/**评论次数**/
	private java.lang.Integer commentCount;
	/**点赞次数**/
	private java.lang.Integer praiseCount;
	
	//columns END
	
	public java.lang.Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(java.lang.Integer commentCount) {
		this.commentCount = commentCount;
	}

	public java.lang.Integer getPraiseCount() {
		return praiseCount;
	}

	public void setPraiseCount(java.lang.Integer praiseCount) {
		this.praiseCount = praiseCount;
	}

	public java.lang.Integer getIsOfficial() {
		return isOfficial;
	}

	public void setIsOfficial(java.lang.Integer isOfficial) {
		this.isOfficial = isOfficial;
	}

	public java.lang.Integer getIsTop() {
		return isTop;
	}

	public void setIsTop(java.lang.Integer isTop) {
		this.isTop = isTop;
	}

	public java.sql.Timestamp getTopAt() {
		return topAt;
	}

	public void setTopAt(java.sql.Timestamp topAt) {
		this.topAt = topAt;
	}

	public Integer getTagId() {
		return tagId;
	}

	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}

	public CommunityMessage(){
	}

	public CommunityMessage( java.lang.Integer id ){
		this.id = id;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return this.type;
	}
	
	public void setContent(java.lang.String content) {
		this.content = content;
	}

	public java.lang.String getContent() {
		return this.content;
	}
	
	public void setCreatorId(java.lang.Integer creatorId) {
		this.creatorId = creatorId;
	}

	public java.lang.Integer getCreatorId() {
		return this.creatorId;
	}
	
	public void setCommunityId(java.lang.Integer communityId) {
		this.communityId = communityId;
	}

	public java.lang.Integer getCommunityId() {
		return this.communityId;
	}
	
	public void setImg(java.lang.String img) {
		this.img = img;
	}

	public java.lang.String getImg() {
		return this.img;
	}
	
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}
	
	public void setIsShow(java.lang.Integer isShow) {
		this.isShow = isShow;
	}

	public java.lang.Integer getIsShow() {
		return this.isShow;
	}
	
	public void setPv(java.lang.Integer pv) {
		this.pv = pv;
	}

	public java.lang.Integer getPv() {
		return this.pv;
	}
	

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

